package com.qfjy.suzhou;

/**
 * @author: SUZ
 * @date:2022/9/13 19:37
 * @version: 1.0
 */
public class TransferObjectPatternDemo {

    public static void main(String[] args) {
        PersonVo personVo = new PersonVo();
        //输出所有人
        for (Person p:personVo.list()
             ) {
            System.out.println(p.getpId()+"\t"+p.getpName());

        }
        //删除
       personVo.deletePersonByPId(1);

        //增加
        personVo.addperson(new Person(3,"lili"));



    }


}
